{config_load file="lang/$language/lang_$language.conf" section="address_book_process"}
<div class="ar inputRequirement">{#text_must#}</div>

	<legend><strong>{$ADDRESS_BOOK_TITLE}</strong></legend>
	{if $INPUT_MALE}
				<div data-role="fieldcontain">
		    		<fieldset data-role="controlgroup">
		    			<legend>{#text_gender#}</legend>
		    			{$INPUT_MALE|replace:'name="gender"':'name="gender" id="gender-1"'}
		    			<label for="gender-1">{#text_male#}</label>
		    			
		    			<legend>{#text_gender#}</legend>
		    			{$INPUT_MALE|replace:'name="gender"':'name="gender" id="gender-2"'}
		    			<label for="gender-2">{#text_female#}</label>
		    		</fieldset>
		    	</div>
			{/if}
	{if $INPUT_FIRSTNAME}
		<div data-role="fieldcontain">
			<label for="firstname">{#text_firstname#}</label>
			{$INPUT_FIRSTNAME|replace:'name="firstname"':'name="firstname" id="firstname"'}
		</div>
	{/if}
	{if $INPUT_LASTNAME}
		<div data-role="fieldcontain">
			<label for="lastname">{#text_lastname#}</label>
			{$INPUT_LASTNAME|replace:'name="lastname"':'name="lastname" id="lastname"'}
		</div>
	{/if}
	{if $INPUT_COMPANY}
		<div data-role="fieldcontain">
			<label for="company">{#text_company#}</label>
			{$INPUT_COMPANY|replace:'name="company"':'name="company" id="company"'}
		</div>
	{/if}
	{if $INPUT_STREET}
		<div data-role="fieldcontain">
			<label for="street_address">{#text_street#}</label>
			{$INPUT_STREET|replace:'name="street_address"':'name="street_address" id="street_address"'}
		</div>
	{/if}
	{if $INPUT_SUBURB}
		<div data-role="fieldcontain">
			<label for="suburb">{#text_suburb#}</label>
			{$INPUT_SUBURB|replace:'name="suburb"':'name="suburb" id="suburb"'}
		</div>
	{/if}
	{if $INPUT_CITY}
		<div data-role="fieldcontain">
			<label for="city">{#text_city#}</label>
			{$INPUT_CITY|replace:'name="city"':'name="city" id="city"'}
		</div>
	{/if}
	{if $INPUT_CODE}
		<div data-role="fieldcontain">
			<label for="postcode">{#text_code#}</label>
			{$INPUT_CODE|replace:'name="postcode"':'name="postcode" id="postcode"'}
		</div>
	{/if}
	{if $INPUT_STATE}
		<div data-role="fieldcontain">
			<label for="state">{#text_state#}</label>
			{$INPUT_STATE|replace:'name="state"':'name="state" id="state"'}
		</div>
	{/if}
	{if $INPUT_COUNTRY}
		<div data-role="fieldcontain">
			<label for="country">{#text_country#}</label>
			{$INPUT_COUNTRY|replace:'name="country"':'name="country" id="country"'}
		</div>
	{/if}
	{if $CHECKBOX_PRIMARY}
		<div data-role="fieldcontain">
			<label for="primary">Standardadresse?</label>
			{$CHECKBOX_PRIMARY|replace:'name="primary"':'name="primary" id="primary"'}
		</div>
	{/if}